#ifndef XDEVICE_TRANSPORT_H
#define XDEVICE_TRANSPORT_H

#include <xdevice/xdevice.h>
#include <stddef.h>

#ifdef __cplusplus
extern "C" {
#endif

/* Memory transport API */
int xdevice_transport_memory_init(size_t buffer_size);
void xdevice_transport_memory_cleanup(void);
int xdevice_transport_memory_send(const void* data, size_t size);
int xdevice_transport_memory_recv(void* buffer, size_t buffer_size);

#ifdef __cplusplus
}
#endif

#endif /* XDEVICE_TRANSPORT_H */
